// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-04-26 15:54:41
// 生成路径: internal/app/business/service/ticket_remain.go
// 生成人：周志雄
// desc:节目票剩余
// company:云南奇讯科技有限公司
// ==========================================================================


package service


import (
	"context"
	"github.com/tiger1103/gfast/v3/api/v1/business"
	"github.com/tiger1103/gfast/v3/internal/app/business/model"	
)


type ITicketRemain interface {
	List(ctx context.Context, req *business.TicketRemainSearchReq) (res *business.TicketRemainSearchRes, err error)
	GetById(ctx context.Context, Id int) (res *model.TicketRemainInfoRes,err error)
	Add(ctx context.Context, req *business.TicketRemainAddReq) (err error)
	Edit(ctx context.Context, req *business.TicketRemainEditReq) (err error)
	Delete(ctx context.Context, Id []int) (err error)
}


var localTicketRemain ITicketRemain


func TicketRemain() ITicketRemain {
	if localTicketRemain == nil {
		panic("implement not found for interface ITicketRemain, forgot register?")
	}
	return localTicketRemain
}


func RegisterTicketRemain(i ITicketRemain) {
	localTicketRemain = i
}
